FROM intelligentsearch/isearch_env
COPY install.sh /root/install.sh
COPY start.sh /root/start.sh
RUN /bin/bash /root/install.sh &&\
    echo "/usr/local/lib" >> /etc/ld.so.conf &&\
    /sbin/ldconfig -v &&\
    cp /usr/local/jdisearch/src/search_local/index_storage/api/c_api_cc/libdtc-gcc-4.9-r4646582.so /usr/lib/libdtc.so.1 &&\
    /bin/rm -rf /usr/local/jdisearch

CMD ["/bin/bash", "/root/start.sh"]


